package cn.itcast.bos.service.take_delivery;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.query.Procedure;

import cn.itcast.bos.domain.page.PageBean;
import cn.itcast.bos.domain.take_delivery.Promotion;
/**
 * 促销活动
 * @author WDS
 *
 */
public interface PromotionServic {

	public void save(Promotion model);

	public Page<Promotion> findPageData(Pageable pageable);

	// webService方法, 获取宣传活动数据
	@Path("/findPageData")
	@GET
	@Produces("application/json")
	@Consumes("application/json")
	public PageBean<Promotion> findPageData(@QueryParam("page") Integer page, @QueryParam("rows") Integer rows);

}
